package org.uim.cricket.storage;

import org.uim.cricket.storage.raise.fetch.OrderedFetchList;

public class StorageBeans extends FetchBeans {

	public static String beanFile = "../config/storage-beans.xml";
	private static StorageBeans sbeans = null;
	
	public StorageBeans() {
		super(beanFile);
		
		this.loadBeans();
	}
	
	public static StorageBeans getInstance() {
		if (sbeans == null) sbeans = new StorageBeans();
		return sbeans;
	}
	
	public OrderedFetchList fetchResObj() {
		Object obj = this.fetchBean("fetch-list");
		if (obj == null) return null;
		if (obj instanceof OrderedFetchList) 
			return (OrderedFetchList) obj;
		return null;
	}
	
}
